home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
ansi
/
math
/
elefunt
/
ipow.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-12-16
|
252 b
|
21 lines
/* -*-C-*- ipow.c */
#include "elefunt.h"
float
ipow(x, n)
float x;
int n;
{
float value;
int k;
value = 1.0;
for (k = 1; k <= ABS(n); ++k)
value *= x;
if (n < 0)
value = 1.0 / value;
return (value);
}